package com.leo.springbootmultithreadbasic.singleton.ehan;

/**
 * @author Leo
 * @version V1.0
 */
public class MyObject {
    private static  MyObject myObject = new MyObject();

    private MyObject() {
    }

    public static MyObject getInstance() {
        // 可能会出现线程安全问题
        return myObject;
    }
}
